package com.demo.amusic.entity;

/**
 * 音乐类
 */
public class Music {

    private int id;
    private String name;
    private String author;
    private String url;
    private String localUrl;
    private int type;

    public Music() {

    }

    public Music(String name,String author, String url, String localUrl, int type) {
        this.name = name;
        this.author = author;
        this.url = url;
        this.localUrl = localUrl;
        this.type = type;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getLocalUrl() {
        return localUrl;
    }

    public void setLocalUrl(String localUrl) {
        this.localUrl = localUrl;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Music{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", url='" + url + '\'' +
                ", localUrl='" + localUrl + '\'' +
                ", type=" + type +
                '}';
    }
}
